import service from "@/utils/request";

export function getKnowledgeBaseList(data) {
  return service({
    url: "/knowledgebase/list",
    method: "post",
    data
  });
}

export function addKnowledgeBase(data) {
  return service({
    url: "/knowledgebase/add",
    method: "post",
    data
  });
}

export function updateKnowledgeBase(data) {
  return service({
    url: "/knowledgebase/update",
    method: "post",
    data
  });
}

export function deleteKnowledgeBase(data) {
  return service({
    url: "/knowledgebase/delete",
    method: "delete",
    data
  });
}

export function enableKnowledgeBase(data) {
  return service({
    url: "/knowledgebase/enable",
    method: "post",
    data
  });
}

export function disabledKnowledgeBase(data) {
  return service({
    url: "/knowledgebase/disabled",
    method: "post",
    data
  });
}

export function existKnowledgeBase(data) {
  return service({
    url: "/knowledgebase/exist",
    method: "post",
    data
  })
}

export function getKnowledgeBase(data) {
  return service({
    url: "/knowledgebase/" + data,
    method: "get"
  })
}